Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Mon, 1 Feb 2021 18:21:48 +0000 (18:21 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Mon, 1 Feb 2021 18:21:48 +0000 (18:21 +0000)
commit18a927384a10cbc79eb44a2c6ddb65063fbd309f
tree03dff2e95335cb12e5d3fb58832fffcad026d721
parentb47a39bd9c9b978a783af235830f0fdff7e8a984
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff
src/corelib/io/qstorageinfo_unix.cpp